package org.twb.o2o.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.twb.o2o.domain.User;

import java.util.List;

/**
 * Created by km on 2017/4/20.
 */
@Repository
public interface UserDao {
    User findById(@Param("id") Long id);
    List<User> findAll();
    void delete(@Param("id") Long id);
    void saveUser(User user);
}
